package test.zuoye;

public class T3 {
    public static void main(String[] args) {
        double zongjia = 24 + 8 + 3;
        zongjia = (zongjia <= 30 ? zongjia : zongjia * 0.8);
        double yxrs = 16 + 8 + 3;
        double zuizhong = (zongjia < yxrs ? zongjia : yxrs);
        System.out.println("最少花费：" + zuizhong);
    }
}
